/**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2017-2027 Chinazyjr,Inc.All Rights Reserved.
 */

package com.sys.midware.hbase.config;

/**
 * <b>ClassName:</b> BConfigVO.java <br/>
 * <b>Description:</b> 配置文件实体类 <br/>
 * <b>Date:</b> 2015年10月16日 下午3:55:42<br/>
 * 
 * @author mobing
 * @version
 */
public class BHBaseConfig {
    
    /**
     * 节点名称，一般为业务库的标识
     */
    private String nodeName;

    /**
     * 节点类型，主从
     */
    private String nodeType;
    /**
     * HBase host
     */
    private String hbaseHost;
    /**
     * hbase port
     */
    private int hbasePort;
    /**
     * ZK host
     */
    private String ZKCluster;
    /**
     * ZK port
     */
    private int ZKPort;
    /**
     * hbase 是否自动刷新
     */
    private boolean hbaseAutoflush;
    /**
     * hbse 是否开启压缩
     */
    private boolean hbaseCompaction;
    /**
     * hbase 同步机制
     */
    private String hbaseWal;
    /**
     * hbase 缓冲区
     */
    private int hbaseWriteBuffer;
    /**
     * hbase 最大查询记录数
     */
    private int hbaseQueryMaxResultSize;
    /**
     * hbase 查询最大列数
     */
    private int hbaseQueryBatch;
    /**
     * 一次缓存多少数据来scan
     */
    private int hbaseScannerCaching;
    /**
     * 指定数据最大保存的版本个数
     */
    private int hbaseCFMaxVersions;
    /**
     * 
     * 是否使用BloomFilter,可提高随机查询效率
     */
    private String hbaseCFBloomType;
    /**
     * hbase 压缩算法
     */
    private String hbaseCFCompressionAlgorithm;
    /**
     * storefile的读缓存占用Heap的大小百分比
     */
    private boolean hbaseEnableBlockCache;



    public String getNodeName() {
        return nodeName;
    }



    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }



    public String getNodeType() {
        return nodeType;
    }



    public void setNodeType(String nodeType) {
        this.nodeType = nodeType;
    }



    public String getHbaseHost() {
        return hbaseHost;
    }



    public void setHbaseHost(String hbaseHost) {
        this.hbaseHost = hbaseHost;
    }



    public int getHbasePort() {
        return hbasePort;
    }



    public void setHbasePort(int hbasePort) {
        this.hbasePort = hbasePort;
    }



    public String getZKCluster() {
        return ZKCluster;
    }



    public void setZKCluster(String zKCluster) {
        ZKCluster = zKCluster;
    }



    public int getZKPort() {
        return ZKPort;
    }



    public void setZKPort(int zKPort) {
        ZKPort = zKPort;
    }



    public boolean isHbaseAutoflush() {
        return hbaseAutoflush;
    }



    public void setHbaseAutoflush(boolean hbaseAutoflush) {
        this.hbaseAutoflush = hbaseAutoflush;
    }



    public boolean isHbaseCompaction() {
        return hbaseCompaction;
    }



    public void setHbaseCompaction(boolean hbaseCompaction) {
        this.hbaseCompaction = hbaseCompaction;
    }



    public String getHbaseWal() {
        return hbaseWal;
    }



    public void setHbaseWal(String hbaseWal) {
        this.hbaseWal = hbaseWal;
    }



    public int getHbaseWriteBuffer() {
        return hbaseWriteBuffer;
    }



    public void setHbaseWriteBuffer(int hbaseWriteBuffer) {
        this.hbaseWriteBuffer = hbaseWriteBuffer;
    }



    public int getHbaseQueryMaxResultSize() {
        return hbaseQueryMaxResultSize;
    }



    public void setHbaseQueryMaxResultSize(int hbaseQueryMaxResultSize) {
        this.hbaseQueryMaxResultSize = hbaseQueryMaxResultSize;
    }



    public int getHbaseQueryBatch() {
        return hbaseQueryBatch;
    }



    public void setHbaseQueryBatch(int hbaseQueryBatch) {
        this.hbaseQueryBatch = hbaseQueryBatch;
    }



    public int getHbaseScannerCaching() {
        return hbaseScannerCaching;
    }



    public void setHbaseScannerCaching(int hbaseScannerCaching) {
        this.hbaseScannerCaching = hbaseScannerCaching;
    }



    public int getHbaseCFMaxVersions() {
        return hbaseCFMaxVersions;
    }



    public void setHbaseCFMaxVersions(int hbaseCFMaxVersions) {
        this.hbaseCFMaxVersions = hbaseCFMaxVersions;
    }



    public String getHbaseCFBloomType() {
        return hbaseCFBloomType;
    }



    public void setHbaseCFBloomType(String hbaseCFBloomType) {
        this.hbaseCFBloomType = hbaseCFBloomType;
    }



    public String getHbaseCFCompressionAlgorithm() {
        return hbaseCFCompressionAlgorithm;
    }



    public void setHbaseCFCompressionAlgorithm(String hbaseCFCompressionAlgorithm) {
        this.hbaseCFCompressionAlgorithm = hbaseCFCompressionAlgorithm;
    }



    public boolean isHbaseEnableBlockCache() {
        return hbaseEnableBlockCache;
    }



    public void setHbaseEnableBlockCache(boolean hbaseEnableBlockCache) {
        this.hbaseEnableBlockCache = hbaseEnableBlockCache;
    }



    @Override
    public String toString() {
        return new StringBuilder().append("HBaseConfig[")
                .append("hbaseHost=").append(hbaseHost)
                .append(", hbasePort=").append(hbasePort)
                .append(", ZKCluster=").append(ZKCluster)
                .append(", ZKPort=").append(ZKPort)
                .append("]").toString();
    }

}
